package com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver;

import com.huawei.hms.framework.common.Logger;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DNManager$ResolveTriggerType;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.cache.CacheManager;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver.dnkeeper.DomainResult;

public class FileCacheResolver extends DNResolver {
    private static final String TAG = "FileCacheResolver";

    FileCacheResolver(String str) {
        super(str, 6, DNManager$ResolveTriggerType.DNS_FILE_LOAD);
    }

    DomainResult query() {
        Logger.v(TAG, "Resolve to File Cache, host: %s", this.domain);
        return CacheManager.lookupFromFileCache(this.domain);
    }
}
